package week07.day02;

/**
 *
 */

public class private关键字 {
    public static void main(String[] args) {
        Phone phone = new Phone();
        phone.setPhonename("Xiaomi 12 Pro");
        phone.setPhonePrice(4999);
        phone.getPhonename();
        phone.getPhonePrice();
        System.out.println("手机型号："+phone.getPhonename());
        System.out.println("价格："+phone.getPhonePrice());
    }
}

class Phone{
    private String Phonename;
    private int PhonePrice;

    public String getPhonename() {
        return Phonename;
    }

    public void setPhonename(String phonename) {
        Phonename = phonename;
    }

    public int getPhonePrice() {
        return PhonePrice;
    }

    public void setPhonePrice(int phonePrice) {
        PhonePrice = phonePrice;
    }
}